import sys


class Solution:
    def get_length_B(self, length_A, A):
        length_B = 0
        if len(A) < 1:
            return length_B
        former, letter = [0] * length_A, [0] * length_A
        for i in range(1, length_A):
            former[i] = former[i-1] + 1 if A[i-1] < A[i] else 0
        for j in range(length_A-2, -1, -1):
            letter[j] = letter[j+1]+1 if A[j+1] < A[j] else 0
        for k in range(length_A):
            if former[k] > 0 and letter[k] > 0:
                length_B = max(length_B, former[k]+letter[k]+1)
        return length_B


if __name__ == '__main__':
    line1 = sys.stdin.readline().strip()
    line2 = sys.stdin.readline().strip()
    length_A = int(line1)
    A = list(map(int, line2.split()))
    x = Solution()
    print(x.get_length_B(length_A, A))
